{include file="user:header" /}
</head>

<body class="gray-bg">
	
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row"> 
  <!--头部面包屑-->
  <div class="col-lg-12">
  
    <div class="ibox">
      <div class="ibox-content-p5 text-center">
        <div class="breadcrumb"> <i class="fa fa-home m-r5" style=" font-size: 16px;"></i>
          <li><a href="/user/index">首页</a></li>
          <li class="active">账号管理</li>
        </div>
      </div>
    </div>

      <?php $tag='account'; ?>
      {include file="user:nav" /}
	  
    <!--表格-->
    <div class="ibox float-e-margins">
		<div class="ibox-title"><h3>账号信息</h3></div>
<div class="ibox-content">
	<form method="post" class="form-horizontal" action="{:url('account')}" id="myform">
		<div class="biaoge">
                <label class="col-sm-1 control-label">账号</label>
                <div class="col-sm-2">
                    <p class="form-control-static">{$info['account']}</p>
                </div>
        </div>

        <div class="hr-line-dashed"></div>
        <div class="biaoge">
            <label class="col-sm-1 control-label">账号余额</label>
            <div class="col-sm-2">
                <p class="form-control-static">{$info['cash']} <a href="/user/cash" style="margin-left:10px;" title="点击查看明细">【查看明细】</a></p>
            </div>
        </div>

        <div class="hr-line-dashed"></div>
		<div class="biaoge">
                <label class="col-sm-1 control-label">姓名</label>
                <div class="col-sm-3">
                    <input type="text" name="name" class="form-control" value="{$info['name']}">
                </div>
        </div>
        <div class="hr-line-dashed"></div>
        <div class="biaoge">
            <label class="col-sm-1 control-label">昵称</label>
            <div class="col-sm-3">
                <input type="text" name="nick" class="form-control" value="{$info['nick']}">
            </div>
        </div>
        <div class="hr-line-dashed"></div>
        <div class="biaoge">
            <label class="col-sm-1 control-label">性别</label>
            <div class="col-sm-10">
                <?php
                    $ary_sex=get_sex_rtn();
                    foreach($ary_sex as $key=>$vo){
                ?>
                <div class="radio radio-success" style="display:inline-block;margin-right:15px;">
                    <input type="radio" name="sex" id="sex{$key}" value="{$key}"<?php echo $info['sex']==$key?' checked':'';?>>
                    <label for="sex{$key}">
                        {$vo}
                    </label>
                </div>
                <?php } ?>
        </div>
  </div>

        <div class="hr-line-dashed"></div>
        <div class="biaoge">
            <label class="col-sm-1 control-label">注册时间</label>
            <div class="col-sm-3">
                <p class="form-control-static">{$info['time_reg']|date="Y-m-d H:i:s"}</p>
            </div>
        </div>
        <div class="hr-line-dashed"></div>
        <div class="biaoge">
            <label class="col-sm-1 control-label">登录次数</label>
            <div class="col-sm-3">
                <p class="form-control-static">{$info['count_login']} 次</p>
            </div>
        </div>
        <div class="hr-line-dashed"></div>
        <div class="biaoge">
            <label class="col-sm-1 control-label">最后登录记录</label>
            <div class="col-sm-3">
                <?php
                  if($info['log_login']){
                  $rtn=string2array($info['log_login']);
                  foreach($rtn as $vo){
                     $ary=explode('|',$vo);
                     $time=date('Y-m-d H:i:s',$ary[0]);
                ?>
                <p class="form-control-static">{$time} | {$ary[1]}</p>
                <?php }} ?>
            </div>
        </div>

	
    	<div class="hr-line-dashed"></div>
		<div class="biaoge">
            <label class="col-sm-1 control-label"></label>
                <div class="col-sm-10">
                   <button type="button" onclick="ajaxpost('myform')" class="btn btn-w-m btn-success editpwd">修改账号</button>
                </div>
        </div>
	
	
	</form>
		</div>
  </div>
</div>




<!-- iCheck -->
<script src="/static/user/js/plugins/iCheck/icheck.min.js"></script>
<script>
    $(document).ready(function () {
        $('.i-checks').iCheck({
            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green',
        });
    });
</script>
{include file="user:footer" /}